class UsersController < Clearance::UsersController 
 
  def new
		@user = ::User.new(params[:user])
		
		respond_to do |format| 
			format.js
		end
	end
	
	def create
		@user = ::User.new(params[:user])
		
		respond_to do |format|  
			if @user.save
				sign_in(@user)
				@subscriptions = current_user.subscription
				format.js { render 'users/create' }
			else
				flash_failure_after_create
				format.js { render 'users/new' }
			end
		end
	end

end